<%--
  Created by IntelliJ IDEA.
  User: 32210
  Date: 2024/6/27
  Time: 17:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>操作成功</title>
    <jsp:include page="../common/common_css.jsp"></jsp:include>
</head>
<body>
<h1 style="width:100%;text-align: center;position: fixed;top: 50%;transform: translateY(-50%)">
    操作成功，<span
        id="second">3</span>秒后<a
        href="${pageContext.request.contextPath}/user/list">返回到列表页</a></h1>
</body>

<script>
    var second = 3;
    var timer = setInterval(function () {

        if (second <= 0) {
            clearInterval(timer);
            window.location.href = "${pageContext.request.contextPath}/user/list";
        }

        second--;

        document.getElementById("second").innerHTML = second;

    }, 1000);
</script>
</html>
